<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="1" />
<title>索引</title>
<!--  通用情况下 不引入 js css  表单验证  js 放置到页面中     -->
</head>
<body>
<form action="${ctx }/lucene/lucene!searchLucene.action" method="post" id="inputForm"
	class='yform' >
<table>
			<tr><td style="width: 220px;">
			<input name="keyword" type="text" value="${keyword}" onchange="judge();" style="width: 200px"/>
			</td>
			<td style="width: 80px;">
			<select style="width: 75px;" name="type">
			<option></option>
			<c:choose>
			<c:when test="${type == 'project' }"><option value="project" selected="selected">工程信息</option></c:when>
			<c:otherwise><option value="project">工程信息</option></c:otherwise>
			</c:choose>
			<c:choose>
			<c:when test="${type == 'rAs' }"><option value="rAs" selected="selected">收发文</option></c:when>
			<c:otherwise><option value="rAs">收发文</option></c:otherwise>
			</c:choose>
			<c:choose>
			<c:when test="${type == 'news' }"><option value="news" selected="selected">新　闻</option></c:when>
			<c:otherwise><option value="news">新　闻</option></c:otherwise>
			</c:choose>
			<c:choose>
			<c:when test="${type == 'publish' }"><option value="publish" selected="selected">公　告</option></c:when>
			<c:otherwise><option value="publish">公　告</option></c:otherwise>
			</c:choose>
			<c:choose>
			<c:when test="${type == 'fujian' }"><option value="fujian" selected="selected">附　件</option></c:when>
			<c:otherwise><option value="fujian">附　件</option></c:otherwise>
			</c:choose>
			</select></td>
			<td><div class="type-button">
			<input  type="submit" class="search" value="搜索" /></div>
			</td></tr>
		</table>
		<c:if test="${not empty newsList}">
	<div id="caption" ><h6>新闻列表</h6></div>
	<table>
	<tr><th>标题</th><th>内容</th><th>发表人</th><th>发表时间</th></tr>
	<c:forEach items="${newsList}" var="p">
	<tr>
	<td><a href="${ctx}/asset/message/news!view.action?id=${p.id}">${p.title}</a></td>
	<td>${p.newsContent}</td>
	<td>${p.person }</td>
	<td><fmt:formatDate value="${p.createDate}" pattern="yyyy-MM-dd HH:mm"/></td>
	</tr>
	</c:forEach>
	</table>	</c:if>
	
	
	<c:if test="${not empty publishList}">
	<div id="caption" ><h6>公告列表</h6></div>
	<table>
	<tr><th>标题</th><th>内容</th><th>发表人</th><th>发表时间</th></tr>
	<c:forEach items="${publishList}" var="p">
	<tr>
	<td><a href="${ctx}/asset/message/publish!view.action?id=${p.id}">${p.title}</a></td>
	<td>${p.publishContent}</td>
	<td>${p.publishPerson }</td>
	<td><fmt:formatDate value="${p.createDate}" pattern="yyyy-MM-dd HH:mm"/></td>
	</tr>
	</c:forEach>
	</table>	</c:if>
	
		<c:if test="${not empty fujianList}">
	<div id="caption" ><h6>附件列表</h6></div>
	<table>
	<tr><th>附件名称</th><th>附件内容关键词</th><th>上传人</th><th>上传时间</th></tr>
	<c:forEach items="${fujianList}" var="p">
	<tr>
	<td><a href="${ctx}/servlet/annex?id=${p.id}">${p.upfileFileName}</a></td>
	<td>${p.result}</td>
	<td>${p.uploadPerson }</td>
	<td><fmt:formatDate value="${p.createDate}" pattern="yyyy-MM-dd HH:mm"/></td>
	</tr>
	</c:forEach>
	</table>	</c:if>
	
	<c:if test="${not empty projectList}">
	<div id="caption" ><h6>工程列表</h6></div>
	<table>
	<tr><th>工程名称</th><th>镇区</th><th>建设单位</th><th>项目负责人</th><th>监理单位</th><th>项目负责人</th><th>施工单位</th><th>项目负责人</th></tr>
	<c:forEach items="${projectList}" var="p">
	<tr>
	<td><a href="${ctx}/project/projectinfo!input.action?projectId=${p.id}">${p.projectName}</a></td>
	<td>${p.atown}</td>
	<td>${p.orgName }</td>
	<td>${p.principal }</td>
	<td>${p.supervisorOrg }</td>
	<td>${p.supPrincipal }</td>
	<td>${p.constructOrg }</td>x
	<td>${p.conPrincipal }</td>
	</tr>
	</c:forEach>
	</table>	</c:if>
	
	<c:if test="${not empty conveyList}">
	<div id="caption" ><h6>发文列表</h6></div>
	<table>
	<tr><th>标题</th><th>内容</th><th>发表时间</th></tr>
	<c:forEach items="${conveyList}" var="p">
	<tr>
	<td><a href="${ctx}/admin/convey!input.action?id=${p.id}">${p.title}</a></td>
	<td>${p.content}</td>
	<td><fmt:formatDate value="${p.createDate}" pattern="yyyy-MM-dd HH:mm"/></td>
	</tr>
	</c:forEach>
	</table>	</c:if>
	
	<c:if test="${not empty receivedList}">
	<div id="caption" ><h6>收文列表</h6></div>
	<table>
	<tr><th>标题</th><th>内容</th><th>发表时间</th></tr>
	<c:forEach items="${receivedList}" var="p">
	<tr>
	<td><a href="${ctx}/admin/received!input.action?id=${p.id}">${p.title}</a></td>
	<td>${p.content}</td>
	<td><fmt:formatDate value="${p.createDate}" pattern="yyyy-MM-dd HH:mm"/></td>
	</tr>
	</c:forEach>
	</table>	</c:if>
	
</form>
</body>
</html>
